package edu.chen.entity;

import org.apache.ibatis.type.Alias;

@Alias("book_")
public class Book {
    private int book_id;
    private String book_name;
    private int book_number;

    public Book(){}

    public Book(int book_id, String book_name) {
        this.book_id = book_id;
        this.book_name = book_name;
    }

    public Book(String book_name, int book_number) {
        this.book_name = book_name;
        this.book_number = book_number;
    }

    public Book(int book_id, String book_name, int book_number) {
        this.book_id = book_id;
        this.book_name = book_name;
        this.book_number = book_number;
    }

    public int getBook_id() {
        return book_id;
    }

    public void setBook_id(int book_id) {
        this.book_id = book_id;
    }

    public String getBook_name() {
        return book_name;
    }

    public void setBook_name(String book_name) {
        this.book_name = book_name;
    }

    public int getBook_number() {
        return book_number;
    }

    public void setBook_number(int book_number) {
        this.book_number = book_number;
    }

    @Override
    public String toString() {
        return "Book{" +
                "book_id=" + book_id +
                ", book_name='" + book_name + '\'' +
                ", book_number=" + book_number +
                '}';
    }
}
